<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合并单元格</title>
</head>
<body>
    <h1>合并单元格的方式：</h1>
    <h2>跨行合并：rowspan="合并单元格的个数", 最上侧单元格为目标单元格写合并代码</h2>
    <h2>跨列合并：colspan="合并单元格的个数", 最左侧单元格为目标单元格写合并代码</h2>
    <h3>合并完后删除多余的td单元格</h3>

    <table cellspacing=0 width=500 border="1" height=250>
        <thead>
            <tr>
                <th colspan="3">哈哈😝</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td></td><td colspan="2"></td>
            </tr>
            <tr>
                <td rowspan="2"></td><td></td><td></td>
            </tr>
            <tr>
                <td></td><td></td>
            </tr>
        </tbody>
    </table>

</body>
</html>